package cn.com.stary1993.kite.captcha.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author stary1993
 * <p>
 * 验证码配置类
 */
@Slf4j
@Configuration(proxyBeanMethods = false)
@EnableConfigurationProperties({CaptchaProperties.class, SimpleImageCaptchaProperties.class,
        BehaviorImageCaptchaProperties.class})
@ConditionalOnProperty(prefix = CaptchaProperties.PREFIX, name = "enabled", matchIfMissing = true)
public class CaptchaAutoConfiguration {
}
